package com.example.jvm.jvm06.lesson51;

import lombok.extern.slf4j.Slf4j;

/**
 * @Description
 * @Date 2021/7/15
 * @Created by Jonathan
 */
@Slf4j
public class Test {
    private static final int _1MB = 1024 * 1024;

    public static void main(String[] args) {
        byte[] allocation1 = new byte[2 * _1MB];
        log.info("创建2M后");
        byte[] allocation2 = new byte[2 * _1MB];
        log.info("创建2M后");
        byte[] allocation3 = new byte[4 * _1MB];
        log.info("创建4M后");
    }
}
